package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.entity.SoSplitCombineDetailDO;
import com.cmc.cloud.cmclink.doc.vo.sovo.sosplitcombinevo.SoSplitCombineDetailCreateReqVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.sosplitcombinevo.SoSplitCombineDetailRespVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.sosplitcombinevo.SoSplitCombineDetailUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 订舱拆分合并详细记录 Convert
 *
 * @author 招商轮船-管理员
 */
@Mapper
public interface SoSplitCombineDetailConvert {

    SoSplitCombineDetailConvert INSTANCE = Mappers.getMapper(SoSplitCombineDetailConvert.class);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SoSplitCombineDetailDO convert(SoSplitCombineDetailCreateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SoSplitCombineDetailDO convert(SoSplitCombineDetailUpdateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SoSplitCombineDetailRespVO convert(SoSplitCombineDetailDO bean);

    /**
     * 属性转换 convert
     *
     * @param list
     * @return
     */
    List<SoSplitCombineDetailRespVO> convertList(List<SoSplitCombineDetailDO> list);

}
